﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using JetBrains.Annotations;
using Orchard.ContentManagement.Handlers;
using Orchard.Data;

namespace TekFlow.FamilyTree.Handlers
{
    [UsedImplicitly]
    public class FamilyTreeHandler:ContentHandler
    {//No persister for: TekFlow.Contact.TekFlowEmailSettingsPartRecord
        public FamilyTreeHandler(IRepository<Models.FamilyTreeRecord> repository)
        {
            //Filters.Add(new ActivatingFilter<Models.FamilyTreePart>("Site"));
            Filters.Add(StorageFilter.For(repository));
            // Filters.Add(new TemplateFilterForRecord<Models.TekFlowEmailSettingsPartRecord>("TekFlowEmailSetting", "Parts.TekFlowEmailSettings"));
        }
    }
}